package 函数式接口;

import java.util.function.Consumer;

/**
 * Consumer 消费型接口
 * 只有输入没有返回值
 */
public class ConsumerDemo {
    public static void main(String[] args) {
        Consumer<Integer> consumer = new Consumer<>() {
            @Override
            public void accept(Integer integer) {

            }
        };

        Consumer<Integer> consumer1 = k -> System.out.println(k + 100 );
        
        consumer1.accept(123);
    }
}
